﻿using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using huimei;

namespace huimei.Migrations
{
    [DbContext(typeof(NongyeNewsContext))]
    partial class NongyeNewsContextModelSnapshot : ModelSnapshot
    {
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
            modelBuilder
                .HasAnnotation("ProductVersion", "1.1.1")
                .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

            modelBuilder.Entity("huimei.NongyeNews", b =>
                {
                    b.Property<string>("title")
                        .ValueGeneratedOnAdd();

                    b.Property<string>("content");

                    b.Property<string>("from");

                    b.Property<string>("time");

                    b.HasKey("title");

                    b.ToTable("NongyeNews");
                });
        }
    }
}
